package com.example.test.service;

import com.example.test.entity.Order;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface OrderService {
    List<Order> getAllOrders();
    Order getOrderById(Long id);
    Order createOrder(Order order);
    void cancelOrder(Long orderId, String reason);
    void requestRefund(Long orderId, String reason);
    void submitReview(Long orderId, Long productId, String review, String username);
    void updateOrderStatus(Long orderId, String status);

    List<Order> getRefundRequests();

    List<Map<String, Object>> getPendingReviews();

    void updateReviewStatus(Long reviewId, boolean iflegal);
    void updateProductInventory(Long orderId, String status);
}